package com.situ.mall.service.impl;

import java.util.List;

import com.situ.mall.pojo.entity.Category;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.situ.mall.mapper.CategoryMapper;
import com.situ.mall.service.ICategoryService;

@Service
public class CategoryServiceImpl implements ICategoryService{
	@Autowired
	private CategoryMapper categoryMapper;

	@Override
	public List<Category> selectTopCategoryList() {
		return categoryMapper.selectTopCategoryList();
	}

	@Override
	public List<Category> selectSecondCategoryListByTopCategoryId(Integer id) {
		return categoryMapper.selectSecondCategoryListByTopCategoryId(id);
	}

	@Override
	public List<Category> selectSecondCategoryList() {
		return categoryMapper.selectSecondCategoryList();
	}

}
